package com.donquijote.proxy.controller;

import com.donquijote.proxy.service.OrderService;
import com.donquijote.proxy.service.impl.OrderServiceImpl;
import com.donquijote.proxy.service.impl.OrderServiceImplSub;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-25 18:08
 */
public class OrderController {

    public static void main(String[] args) throws CloneNotSupportedException {

        OrderService orderService = new OrderServiceImplSub();

        orderService.detail();

        orderService.generate();

        orderService.modify();

        OrderServiceImpl service = new OrderServiceImpl();
        OrderServiceImpl clone = (OrderServiceImpl) service.clone();
        service.setOrderCode("1514544");
        service.setOrderName("卫生纸");
        String orderCode = clone.getOrderCode();



    }
}
